package com.example.service;

import com.example.entity.Event;
import com.example.mapper.EventMapper;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;

@Service
public class EventService {

    @Resource
    private EventMapper eventMapper;

    /**
     * 保存合约事件
     */
    public void saveEvent(Event event) {
        eventMapper.insert(event);
    }

}
